package com.ztz.mynewdemo.utils;

/**
 * Created by wqewqe on 2017/6/27.
 */

public class AppStringUtils {
    public static boolean checkName(String userName){
        if(userName==null){
            return false;
        }else if("".equals(userName)){
            return false;
        }else if(userName.length()<3||userName.length()>10){
            return false;
        }
        return true;
    }
    public static boolean checkPassword(String password){
        if(password==null){
            return false;
        }
        if("".equals(password)){
            return false;
        }
        if(password.length()<4||password.length()>10){
            return false;
        }
        return true;
    }
    public static boolean checkPassword(String pwd1, String pwd2){
        if(!pwd1.equals(pwd2)){
            return false;
        }
        return true;
    }
}
